package org.springframework.core.convert.support;

import org.springframework.core.convert.converter.ConverterRegistry;

/**
 * @Name DefaultConversionService
 * @Description: 默认类型转换服务 [实现] 类
 * @Version v1.0.0
 * @Author: lichao
 * @Date: 2024-04-11 15:47:28
 **/
public class DefaultConversionService extends GenericConversionService {

    public DefaultConversionService() {
        addDefaultConverters(this);
    }

    public static void addDefaultConverters(ConverterRegistry converterRegistry) {
        converterRegistry.addConverterFactory(new StringToNumberConverterFactory());
        // TODO 添加其他 ConverterFactory 类型转换 [工厂] 类
    }
}

